package com.wzz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wzz.dto.UpdateUserInfoDto;
import com.wzz.utils.SaltEncryption;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.util.StringUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * @author by wzz
 * @implNote 2020/10/20 8:57
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("答题请求实体")
@TableName(value = "req_exam")
public class ReqExam implements Serializable {

    //  对应数据库的主键(uuid,自增id,雪花算法, redis,zookeeper)
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键 id")
    private Integer id;

    @ApiModelProperty(value = "用户id", example = "1")
    private Integer userid;

    @ApiModelProperty(value = "答题id", example = "0")
    private String examid;

    @ApiModelProperty(value = "请求状态", example = "0-未请求，1-请求中，2-请求完成")
    private String flag;

    @ApiModelProperty(value = "考试名称")
    private String examname;

    @ApiModelProperty(value = "请求人名称")
    private String username;

    @ApiModelProperty(value = "用户创建时间", example = "2020-10-22 10:35:44")
    private String createdate;

    @ApiModelProperty(value = "答题时间")
    private String starttime;


}
